import request from '@/api/useRequest'
const publicPath = '/users'
export function login(data: { username: string; password: string }) {
  return request({
    url: `${publicPath}/login`,
    method: 'post',
    data,
  })
}
